using Wips.AppService.Authorities.Menus.ViewModels;

namespace Wips.AppService.Authorities.Menus.Responses;

/// <summary>
/// 树状table
/// </summary>
public class GetTreeTableResponse
{
    /// <summary>
    /// 列表项
    /// </summary>
    public List<TreeTableModel> Items { get; set; }

    /// <summary>
    /// [菜单]已分配的项
    /// </summary>
    public List<string> MenuCheckedKeys { get; set; }

    /// <summary>
    /// [操作]已分配的项
    /// </summary>
    public List<string> OperationCheckedKeys { get; set; }

    /// <summary>
    /// 
    /// </summary>
    /// <param name="items"></param>
    /// <param name="menuCheckedKeys"></param>
    /// <param name="operationCheckedKeys"></param>
    public GetTreeTableResponse(
        List<TreeTableModel> items,
        List<string> menuCheckedKeys,
        List<string> operationCheckedKeys)
    {
        Items = items;
        MenuCheckedKeys = menuCheckedKeys;
        OperationCheckedKeys = operationCheckedKeys;
    }
}